/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/*
package com.redteam.models;

import com.redteam.data.beans.Person;
//import com.redteam.data.beans.Pilot;
import com.redteam.data.dao.DAOImpl;
import com.redteam.data.dao.PersonDAO;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Red Team


public class accessReserve {

    public List<Person> determineInstructors(Pilot pilot) {
        List<Person> instructors = new ArrayList<Person>();
        List<Person> view = new ArrayList<Person>();
        DAOImpl dao = DAOImpl.getInstance();
        instructors = dao.getAll();
        for (Pilot p : instructors) {
            if (pilot.getEndorsement().getShortHand() < p.getEndorsement().getShortHand()) {
                view.add(p);
            }
        }
        return view;
    }
}
 *
 *
 *
 *
 */